package core

import (
	consts2 "gitee.com/yibuyiyin/golibs/global/consts"
	"os"
)

func GetEnviron() string {
	env, ok := os.LookupEnv(consts2.GoEnvironKey)
	if ok == false {
		env = "dev"
	}
	return env
}

func IsProductEnv() bool {
	return GetEnviron() == consts2.EnvProduct
}

func GetTestBasePath() string {
	env, _ := os.LookupEnv(consts2.TestBasePathKey)
	return env
}
